{include file="index/header" /}
<div class="container">
    <div class="row">
       <div class="col-md-10">

           <form class="form-horizontal" enctype="multipart/form-data" method="post" action="{:url('index/personal/edit')}">
               <input type="hidden" name="id" value="{$customer.id}">
               <div class="form-group">
                   <label class="col-sm-2 control-label">头像：</label>
                   <div class="col-sm-10 head">
                       <label>
                           <img src="{$customer.headimg === null ? '/static/index/images/head.jpg' : '/static/upload/head/'.$customer.headimg}" width="85" height="85" alt="" class="img-circle">
                           <input type="file" name="head" style="opacity: 0">
                       </label>
                   </div>
               </div>

               <div class="form-group">
                   <label class="col-sm-2 control-label">用户名：</label>
                   <div class="col-sm-10">
                       <p class="form-control-static">{$customer.username}</p>
                   </div>
               </div>
               <div class="form-group">
                   <label class="col-sm-2 control-label">邮箱：</label>
                   <div class="col-sm-10">
                       <p class="form-control-static">{$customer.email}</p>
                   </div>
               </div>

               <div class="form-group">
                   <label class="col-sm-2 control-label">手机号：</label>
                   <div class="col-sm-10">
                       <p class="form-control-static">{$customer.tel}</p>
                   </div>
               </div>

               <div class="form-group">
                   <label for="name" class="col-sm-2 control-label">昵称：</label>
                   <div class="col-sm-10">
                       <input type="text" class="form-control" name="name" id="name" value="{$customer.name}" placeholder="昵称">
                   </div>
               </div>

               <div class="form-group">
                   <label class="col-sm-2 control-label">性别：</label>
                   <div class="col-sm-10">
                       <label class="radio-inline">
                           <input type="radio" {$customer.sex == 1 ? 'checked' : ''} name="sex"  value="1"> 男
                       </label>
                       <label class="radio-inline">
                           <input type="radio" {$customer.sex == 0 ? 'checked' : ''} name="sex"  value="0"> 女
                       </label>
                   </div>
               </div>



               <div class="form-group">
                   <div class="col-sm-offset-2 col-sm-10">
                       <button type="submit" class="btn btn-default">保存修改</button>
                   </div>
               </div>
           </form>
       </div>
    </div>
</div>



{include file="index/footer" /}